-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template revisions API: move back to experimental #51774
Template revisions API: move back to experimental #51774
Conversation
* When merging into core, prepare_revision_links() should be merged with | ||
* WP_REST_Templates_Controller::prepare_links(). | ||
*/ | ||
class Gutenberg_REST_Template_Revision_Count extends Gutenberg_REST_Templates_Controller_6_3 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept the naming convention from #45215
Was considering Gutenberg_REST_Templates_Controller
, but there are no other features here. Not sure.
68ae5fb
to
14cb1dd
Compare
Flaky tests detected in 14cb1ddb4e1d618c2889318ee74c46e0d53c41cb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5341138456
|
e2e fails are unrelated I think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @ramonjd 🙇🏻 This tests well, I wonder why do we still need the code in the 6.3 folder and not only in experimental?
Good question! Do you mean the lookup functionality and endpoint? Here's the PR that introduced it: I just assumed it was separate to the revisions stuff and was indeed going into 6.3? I could be wrong here, so please correct me 😄 |
|
Thanks @draganescu I appears that the changes to get_template_fallback are not yet in Core: The So I guess Was it deliberately left out of 6.2? I can't find any records. Should it be backported to 6.3? |
Move from 6.3 to experimental #45215 (comment)
14cb1dd
to
dca9275
Compare
) Move from 6.3 to experimental WordPress#45215 (comment)
Warning: Type of PR label error To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. |
Reverting #51774 by moving the experimental code into compat/6.4 The changes to the templates controller were made in WordPress 6.4. See: WordPress/wordpress-develop@1f51e1f
* Initial commit: Reverting #51774 by moving the experimental code into compat/6.4 The changes to the templates controller were made in WordPress 6.4. See: WordPress/wordpress-develop@1f51e1f * Linty
What?
This PR moves the PHP changes from:
from
compat/6.3
into/experimental
Why?
Template revisions feature won't make it to 6.3 without a Core change
See discussion: #45215 (comment)
How?
Copy pasta
Testing Instructions
Check that the feature still works on Gutenberg, and that you can see the template revisions button after you change a template or template part (more than twice).
More detailed test steps in #45215